package com.dlc.shop.bean.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 *
 *
 * @author LGH
 * @date 2019-08-21 15:57:40
 */
@Data
@TableName("tz_refund_order_settlement")
public class RefundOrderSettlement implements Serializable{
    private static final long serialVersionUID = 1L;

    @TableId
    @Schema(description = "退款结算单据id" )
    private Long settlementId;

    @Schema(description = "订单编号" )
    private String orderNumber;

    @Schema(description = "订单支付单号" )
    private String orderPayNo;

    @Schema(description = "退款单编号" )
    private String refundSn;

    @Schema(description = "微信/支付宝退款单号（支付平台退款单号）" )
    private String payRefundId;

    @Schema(description = "支付方式(1:微信支付 2支付宝支付)" )
    private Integer payType;

    @Schema(description = "退款金额" )
    private Double refundAmount;

    @Schema(description = "订单总额" )
    private Double orderTotalAmount;

    @Schema(description = "用户ID" )
    private String userId;

    @Schema(description = "创建时间" )
    private Date createTime;

    @Schema(description = "更新时间" )
    private Date updateTime;

    @Version
    @Schema(description = "版本号" )
    private Integer version;

    @Schema(description = "退款状态(1:申请中 2：已完成 -1失败)" )
    private Integer refundStatus;
}
